package org.example.pojo;

import lombok.Getter;

/**
* @Author: 无恙
* @Description: 状态码
* @DateTime: 2023/11/23
*/
@Getter
public enum ResultCode {

    SUCCESS_SUBMIT(201,"成功提交，正在判题，请等待！"),
    SUCCESS_GET_RESULT(200,"Accept!"),

    SUCCESS_CASE(203,"Accept"),
    ERROR_SUBMIT(503,"提交失败！服务器异常！稍后重试"),

    ERROR(204,"判题结果异常！");

    private Integer code;
    private String msg;

    ResultCode(int code,String codeMSg){
        this.code=code;
        this.msg=codeMSg;
    }



}
